//
//  NoDataView.m
//  夺宝吧
//
//  Created by xiaocai on 15/8/5.
//  Copyright (c) 2015年 FangYuan. All rights reserved.
//

#import "NoDataView.h"

@interface NoDataView ()
{
    __weak IBOutlet UIImageView *IMG;
    __weak IBOutlet UILabel *titleLab;
    __weak IBOutlet UIButton *dbtn;
    
}
@end
@implementation NoDataView
- (void)awakeFromNib{
    dbtn.layer.masksToBounds = YES;
    dbtn.layer.cornerRadius = 2;
}

- (void)setIsMineFlag:(BOOL)isMineFlag
{
    _isMineFlag = isMineFlag;
    if (_isMineFlag) {
        dbtn.hidden = NO;
    }else{
        dbtn.hidden = YES;
    }
}
- (void)setTitle:(NSString *)title
{
    _title = title;
    titleLab.text = title;
}
- (void)setImgname:(NSString *)imgname
{
    _imgname = imgname;
    IMG.image = [UIImage imageNamed:@""];
}
//马上夺宝
- (IBAction)buyNowBtnOnClick:(id)sender {
    [[WYMainTabBarVC shareMainTaBarVC].navigationController popToRootViewControllerAnimated:YES];
    [[WYMainTabBarVC shareMainTaBarVC]changeSelectedWithIndex:0];
}


@end
